/**
 * Copyright © 2020 易久批信息技术有限公司. All rights reserved.
 */
package com.dysm.flyweight;

/**
 *
 * @author xiay
 * @since 2020/12/12 10:21 下午
 */
public class ChessFlyweight implements Flyweight {

    private String color;

    public ChessFlyweight(String color) {
        this.color = color;
    }

    @Override
    public void display(Point point) {
        System.out.println(color + "棋子，位置：x=" + point.getX() + "，y=" + point.getY());
    }
}
